package com.fengxu.gmall.service.impl;

import com.fengxu.gmall.bean.UserAddress;
import com.fengxu.gmall.service.UserService;

import java.util.Arrays;
import java.util.List;


public class UserServiceImpl implements UserService {

    // 模拟从数据库查询用户信息
    @Override
    public List<UserAddress> getUserAddressList(String userId) {
        UserAddress userAddress1 = new UserAddress(1,"北京市","1","欧鸡鸡","13319448888","Y");
        UserAddress userAddress2 = new UserAddress(2,"北京市","2","罗鸡鸡","18119448888","N");
        return Arrays.asList(userAddress1,userAddress2);
    }
}
